﻿@model AuditModel.Teacher

<div class="editor-label">
            @AuditResources.Teacher.Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        
        <div class="editor-label">
            @AuditResources.Teacher.Photo
        </div>
        <div class="editor-field">
        @if (Model != null)
        {
             @AuditWeb.Helpers.Image(this.Html, Model.Photo, Model.Name,150)
        }
        else
        {
            @AuditWeb.Helpers.Image(this.Html, "~/Content/photos/profile.jpg", "Profile",150)
        }
            <br />
             <input type="file" name="file" id="file1" />
             @Html.Hidden("Photo", "~/Content/photos/profile.jpg")
            @Html.ValidationMessageFor(model => model.Photo)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.Gender
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gender)
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.BirthYearMonth
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BirthYearMonth)
            @Html.ValidationMessageFor(model => model.BirthYearMonth)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.Telephone
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telephone)
            @Html.ValidationMessageFor(model => model.Telephone)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.HighestEducation
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HighestEducation)
            @Html.ValidationMessageFor(model => model.HighestEducation)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.TeachingYears
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TeachingYears)
            @Html.ValidationMessageFor(model => model.TeachingYears)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.CurrentSchool
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CurrentSchool)
            @Html.ValidationMessageFor(model => model.CurrentSchool)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.CurrentSubject
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CurrentSubject)
            @Html.ValidationMessageFor(model => model.CurrentSubject)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.SchoolAddress
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SchoolAddress)
            @Html.ValidationMessageFor(model => model.SchoolAddress)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.Principal
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Principal)
            @Html.ValidationMessageFor(model => model.Principal)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.CurrentGrade
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CurrentGrade)
            @Html.ValidationMessageFor(model => model.CurrentGrade)
        </div>

        <div class="editor-label">
            @AuditResources.Teacher.CountyCode
        </div>
        <div class="editor-field">
            @Html.DropDownList("CountyCode")
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>